<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>	
	{% include file="header.html" %}
	<body>
		<div id="center">
			<div id="title">帖子列表</div>
			<hr/><br/>
			<div>
				{%section name=index loop=$topiclist%}
				<!--帖子分类-->
				<div class="topiclist_panel_type">					
					[{%$topiclist[index]->getTopicTopicTypeName()%}]
				</div>
				<!--帖子标题-->
				<div class="topiclist_panel_title">
					{%$topiclist[index]->getTopicTitle()%}
				</div>
				<!--帖子内容-->
				<div class="topiclist_panel_content">
					{%$topiclist[index]->getTopicContent()%}
				</div>
				<!--帖子作者-->
				<div class="topiclist_panel_auth">					
					{%$topiclist[index]->getTopicUserName()%}
				</div>
				<!--帖子时间-->
				<div class="topiclist_panel_datetime">					
					{%$topiclist[index]->getTopicDatetime()%}
				</div>
				{%/section%}
			</div>
			<form action="topiclist.php" method="post">
				<div>
					<table style="width: 100%">
						<tr>
							<td style="width: 10%">
								<input type="submit" value="发帖"/>
							</td>
							<td style="width: 10%">
								
								<select name="topic_topictype_id">
								{%section name=index loop=$topictypelist%}
								<option value="{%$topictypelist[index]->getTopicTypeId()%}">{%$topictypelist[index]->getTopicTypeName()%}</option>
								{%/section%}
								</select>
							</td>
							<td style="width: 60%">
								<input name="topic_title" type="text" maxlength="256" style="width: 100%" />
							</td>
						</tr>
					</table>
				</div>
				<div>
					{%$editor->Create()%}
				</div>
			</form>
		</div>
	</body>
</html>
